<?php defined('IN_LK') or die('Access Denied');?>
<?php include self::admin_t('header');?>
<div class="tt">
  <div class="fl w49">
    <h3><?php echo LANG('my_userinfo');?></h3>
    <ul class="list">
      <li>您好，<?php echo $username;?></li>
      <li>角色：<?php echo $role;?></li>
      <li>您有1条未读消息，收件箱（1）</li>
      <li>上次登陆时间：<?php echo $lastlogintime;?></li>
      <li>上次登陆IP：<?php echo $lastloginip;?></li>
      <li>登陆次数：<?php echo $logintimes;?> 次</li>
    </ul>
  </div>
  <div class="fr w49">
    <h2>快速连接</h2>
    <ul class="list">
    <li id="my_menu"></li>
    </ul>
  </div>
  <div class="c"></div>
  <div class="fl w49">
    <h2>系统信息</h2>
    <ul class="list">
    <?php foreach($system_info as $infok => $infov){?>
    <li><?php echo $infok, '：', $infov;?></li>
    <?php }?>
    </ul>
  </div>
  <div class="fr w49">
  <h3>开发团队</h3>
  <ul class="list">
    <li>程序开发：杨治国</li>
    <li>UI设计：杨治国</li>
    <li>联系网站:<a href="http://www.amiaoagou.com" target="_blank">www.amiaoagou.com</a></li>
  </ul>
  </div>
  <div class="c"></div>
</div>
<?php include self::admin_t('footer');?>
<script type="text/javascript">
var my_menu = <?php echo $my_menu ? $my_menu : '[]';?>;
var html  = '';
for(var i = 0; i <my_menu.length; i ++)
{
	html += '<a id="panel_' + my_menu[i].id + '" href="javascript:void(0);" onclick="return parent.initguide(\'' + my_menu[i].parent + '\',\'' + my_menu[i].name + '\')">[' + my_menu[i].title + ']</a><a href="javascript:void(0);" onclick="delete_panel(' + my_menu[i].id + ')" id="delete_panel_' + my_menu[i].id + '" class="delete_panel"></a>';
}
document.getElementById('my_menu').innerHTML = html;

function delete_panel(id)
{
	$.get('?m=admin&c=index&a=delete_panel&id=' + id, function (data)
	{
		if(data)
		{
			$('#panel_' + id).fadeOut();
			$('#delete_panel_' + id).fadeOut();
		}
	});
}
</script>
